package vsvm.gui.forms;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;

import vsvm.classifier.AbstractTestSet;
import vsvm.graphics.charts.PNROCChart;
import vsvm.graphics.charts.ROCChart;
import vsvm.gui.VSVMInternalFrame;
import vsvm.math.CoreMath;
import vsvm.math.statistics.ROCAnalysis;

import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;

public class PNROCFrame extends VSVMInternalFrame {

	private JPanel jContentPanel  = null;	
	
	private ROCAnalysis roc = null;
	private AbstractTestSet testSet = null;
	/**
	 * This method initializes 
	 * 
	 */
	public PNROCFrame(AbstractTestSet testSet) {
		super("Receiver Operating Characteristic Curve");
		this.testSet = testSet;
		roc = new ROCAnalysis(testSet);
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 */
	private void initialize() {
        this.setSize(new java.awt.Dimension(456,242));
        this.setContentPane(getJContentPanel());        
			
	}

	/**
	 * This method initializes jContentPanel	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJContentPanel() {
		if (jContentPanel == null) {
			jContentPanel = new JPanel();
			jContentPanel.setLayout(new BorderLayout());			
			PNROCChart chart = new PNROCChart("ROC Curve for " + this.testSet.getName(), this.testSet);
			jContentPanel.add(chart, BorderLayout.CENTER);					
		}
		return jContentPanel;
	}
	
	

}  //  @jve:decl-index=0:visual-constraint="10,10"
